<?php include 'application/views/header.php' ?>
<h4 class="page-title">Trang tĩnh</h4>
<form accept="<?php echo base_url() ?>page/edit/<?php echo $Page['PageId'] ?>" method="post" id="frmPageEdit">
<script type="text/javascript" src="<?php echo base_url() ?>public/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>public/ckfinder/ckfinder.js"></script>
    <table width="100%" class="form page-edit">
       <tr>
            <th>Mã số của trang</th>
            <td><?php echo $Page['PageId'] ?></td>
       </tr>
       <tr>
            <th>Tên trang</th>
            <td><input type="text" value="<?php echo $Page['PageName'] ?>" name="PageName" id="PageName"/></td>
       </tr>
       <tr>
            <th>Tiêu đề của trang</th>
            <td><input type="text" value="<?php echo $Page['PageTitle'] ?>" name="PageTitle" id="PageTitle"/></td>
       </tr>
       <tr>
            <th>Nội dung trang</th>
            <td>
                <textarea id="PageDetail" name="PageDetail"><?php echo $Page['PageDetail'] ?></textarea>
            </td>
       </tr>
    </table>
    <div class="clr button-set">
        <input type="submit" value="Lưu nội dung" id="btnSave" />
        <input type="reset" value="Hủy nội dung vừa nhập" id="btnReset" />
        <input type="button" value="Về danh sách trang" id="btnBack" />
    </div>
</form>
<?php include 'application/views/footer.php' ?>
<script>
$('#btnBack').click(function(){
    window.location.href = '<?php echo base_url() ?>page'; 
});
var ck = CKEDITOR.replace( 'PageDetail', { toolbar : 'Full'});
CKFinder.setupCKEditor( ck, { 
    basePath : '/admin/public/ckfinder/' 
} ) ;
</script>